import request from '@/utils/request.js'

// 获取openId
export function getOpenIdApi(data){
	return request({
		url: '/User/getOpenId',
		method: 'GET',
    data
	})
}
// 用户信息保存到数据库
export function saveUserApi(data){
	return request({
		url: '/User/saveUser',
		method: 'GET',
    data
	})
}
// 初始化接口
export function initializeAppApi(data={}){
	return request({
		url: `/baseinfo/initialize?businessId=${data.businessId}&openId=${data.openid}`,
		method: 'GET'
	})
}
